// ============================== 导入依赖 ============================== //

import API from '@admin/views/Secure/Access/AccessRecord/store/API'

// ============================== 导出状态集 ============================== //

export default {
  // —————————————————————————————— 常量状态 —————————————————————————————— //

  /**
   * 接口
   */
  API: {
    validParam(param, state, root) {
      return root.state.one.deviceId
    },
    transParam(param, { rootState: { one: { deviceId } } }) {
      return { ...param, deviceId }
    },
    getList: API.getList,
  },

  /**
   * 映射
   */
  MAP: {
    WORD: '通行记录', // 词语
  },
}
